package icasue.base.lock.expecion;

import lombok.Data;

/**
 * @Author: Qiao Hang
 * @CreateDate: 2020/11/4 下午2:52
 * @UpdateDate:
 * @Description: 服务逻辑执行超时异常.
 */
@Data
public class ServiceTimeOutException extends RuntimeException {
    String message;
    Throwable throwable;

    public ServiceTimeOutException(String message, Throwable throwable){
        super(message,throwable);
        this.message = message;
        this.throwable = throwable;
    }

    public ServiceTimeOutException(String message){
        super(message);
        this.message = message;
    }
}
